package org.iks.feign.config;

import jakarta.annotation.PostConstruct;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration
@EnableFeignClients(basePackages = {"org.iks.feign.service.user", "org.iks.feign.service.store"})
public class FeignConfig {

    @Bean
    public FeignInterceptor feignInterceptor() {
        return new FeignInterceptor();
    }
    @PostConstruct
    public void printLog() {
        log.info("open feign start loading success");
    }

}
